package com.ln.aop01.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/11 16:29
 */
@RestController
@RequestMapping("/aop")
public class UserController {
    @GetMapping("/get")
    public String get(){
        System.out.println("===get===");
        return "get";
    }

    @PostMapping("/post")
    public String post(){
        System.out.println("===post===");
        return "post";
    }
}
